﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;


namespace EZCRS.HCMS.Entity
{
   
        #region h_facility
        /// <summary>
        /// This object represents the properties and methods of a h_facility.
        /// </summary>
        public class HCRS_Facility
        {
            private int? _id;
            private int? _fclass;
            private string _fname = String.Empty;
            private int? _languagetype;

            public HCRS_Facility()
            {
            }

            public HCRS_Facility(DataRow dr)
            {
                if (dr != null)
                {
                    Id = Convert.ToInt32(dr["id"].ToString());
                    fclass = Convert.ToInt32(dr["fclass"].ToString());
                    fname = dr["fname"].ToString();
                    languagetype = Convert.ToInt32(dr["languagetype"].ToString());
                }
            }

            #region Public Properties
            [DataFieldAttribute("id", "pk")]
            public int? Id
            {
                get { return _id; }
                set { _id = value; }
            }

            public int? fclass
            {
                get { return _fclass; }
                set { _fclass = value; }
            }

            public string fname
            {
                get { return _fname; }
                set { _fname = value; }
            }

            public int? languagetype
            {
                get { return _languagetype; }
                set { _languagetype = value; }
            }
            #endregion

        }
        #endregion
    
}
